import { post } from '~/common/request.ts';
import { LoginForm, LoginInfo } from '~/model/login';
import { AjaxResponseWrapper } from '~/common';

export const login = (loginForm: LoginForm): Promise<AjaxResponseWrapper<LoginInfo>> => {
  return post<LoginInfo>('/login', loginForm);
};
